#include <iostream>
using namespace std;

template<class T>
class Array
{
	
public:
	T& operator[](size_t i)
	{
		return m_arr[i];
	}
private:
	T m_arr[10];
};

int main()
{
	Array<int> a;
	for(int i = 0; i < 10; i++)
	{
		a[i] =  i + 1;
		cout << a[i] << endl;
	}

	Array<Array<int> > b;
	for(int i = 0; i < 10; i++)
	{
		for(int j = 0; j < 10; j++)
		{
			b[i][j] = i + j;
			cout << b[i][j] << " ";
		}
		cout<<endl;
	}
	return 0;
}
